//
//  Person.m
//  TestGameEngine
//
//  Created by Louis CHU on 22/03/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "Person.h"
#import "OpenGLES1BasicDrawer.h"
#import "OpenGLES1BasicAnimation.h"
@interface Person ()
@property (nonatomic, unsafe_unretained) float angle;
@end

@implementation Person
@synthesize angle;
+ (Person *) create
{
    Person * newPerson = [Person new];
    newPerson.angle = 0.f;
    return newPerson;
}

- (void) update
{
    [super update];
    self.angle += 0.5f;
    [OpenGLES1BasicAnimation rotate:self.angle];
}

- (void) render
{
    [super render];
    [OpenGLES1BasicDrawer drawLineFromPoint:CGPointMake(0, 0) toPoint:CGPointMake(0.5, 0.5) color:[UIColor blueColor]];
}
@end
